using UnityEngine;

public class SkillManager : MonoBehaviour
{
    public static SkillManager Instance { get; private set; }
    public DashSkillController Dash { get; private set; }
    public CloneSkillController Clone { get; private set; }
    public SwordSkillController Sword { get; private set; }

    // ReSharper disable once IdentifierTypo
    public BlackholeSkillController Blackhole { get; private set; }
    public CrystalSkillController Crystal { get; private set; }
    public ParrySkillController Parry { get; private set; }
    public DodgeSillController Dodge { get; private set; }

    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(this);
        }
        else
            Destroy(gameObject);

        Dash = GetComponent<DashSkillController>();
        Clone = GetComponent<CloneSkillController>();
        Sword = GetComponent<SwordSkillController>();
        Blackhole = GetComponent<BlackholeSkillController>();
        Crystal = GetComponent<CrystalSkillController>();
        Parry = GetComponent<ParrySkillController>();
        Dodge = GetComponent<DodgeSillController>();
    }
}